from flask import request
from . import carbon_alipay_bp
from controller.carbon_alipay.carbon_alipay_controller import AliPay


@carbon_alipay_bp.route('/pay', methods=['POST'])
def pay():
    return AliPay.pay_test(request)


@carbon_alipay_bp.route('/notify', methods=['GET', 'POST'])
def notify():
    return AliPay.notify(request)
